<template>
	<view class="homecon">
		<u-navbar title="水情监测" :leftIconSize="24" :bgColor="bgColor" rightIcon="question-circle" :autoBack="true"
			:placeholder="true" safeAreaInsetTop>
			<view class="u-nav-slot" slot="right" @click="auxiliaryCurrentMeasurementFn">
				<u-icon name="question-circle" color="#000" size="24"></u-icon>
			</view>
		</u-navbar>
		<!-- 		<view class="tophead">
			<uni-icons type="left" color="#666" size="26" @click="retFn"></uni-icons>
			<view class="">
				水情监测
			</view>
			<view class="" style="width: 100rpx;display: flex;justify-content: flex-end;align-items: center;">
				<view class="" style="margin-right: 20rpx;">
					<uni-icons type="help" color="#000000" size="26" @click="auxiliaryCurrentMeasurementFn"></uni-icons>
				</view>
			</view>
		</view> -->
		<!-- 图表 -->
		<view class="my_uch">
			<view class="my_tit" v-for="(i,index) in dataList" :key="index" @click="shuiwehd(i)">
				<view class="my_tit_y">

				</view>
				<image class="img" :src="i.img" mode=""></image>
				<view class="my_tit_z">
					{{i.name}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import plannedflow from '@/pages/waterMonitoring/flowRateUCh.vue';
	import waterlevel from '@/pages/waterMonitoring/waterLevelUCh.vue';
	export default {
		components: {
			plannedflow,
			waterlevel
		},
		data() {
			return {
				bgColor: '#f2f1f6',
				autoplay: true,
				background: ['color1', 'color2', 'color3'],
				indicatorDots: true,
				autoplay: true,
				interval: 3000,
				duration: 500,
				dataList: [{
						img: require('@/static/jihua1.png'),
						name: '当前水情'
					},
					{
						img: require('@/static/shouji.png'),
						name: '我的站点'
					},
					{
						img: require('@/static/liebiaoa.png'),
						name: '监测项目'
					},
					{
						img: require('@/static/nianj.png'),
						name: '水位比较'
					},
					{
						img: require('@/static/liusyi.png'),
						name: '流量分析'
					},
					{
						img: require('@/static/meiri.png'),
						name: '水量平衡'
					},
					{
						img: require('@/static/shiyongshuom.png'),
						name: '填报水情数据'
					},
				]
			}
		},
		onLoad(option) {

		},
		onShow() {

		},
		methods: {
			shuiwehd(){
				uni.navigateTo({
					url: '/pages/index/deploymentPage'
				});
			},
			// 返回
			retFn() {
				uni.navigateBack({
					delta: 1
				});
			},
			auxiliaryCurrentMeasurementFn() {
				//在起始页面跳转到test.vue页面并传递参数
				uni.navigateTo({
					url: '/pages/manualFlowMeasurement/gongnengshuoming?id=' + '水情监测'
				});
			},
		}
	}
</script>
<style scoped lang="scss">
	.tophead {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 80rpx 20rpx 10rpx 20rpx;
		color: #000000;
		background-color: #f3f3f3;
	}

	.homecon {
		.my_uch {

			.my_tit {
				margin: 20rpx;
				padding: 20rpx;
				border-radius: 20rpx;
				background-color: #ffffff;
				display: flex;
				align-items: center;
				justify-content: center;
				color: #000000;

				.my_tit_y {
					width: 30rpx;
					height: 50rpx;
					border-radius: 50rpx;
					margin-right: 30rpx;
					background-color: #f2f1f6;
				}

				.img {
					width: 100rpx;
					height: 100rpx;
				}

				.my_tit_z {
					width: 600rpx;
					font-size: 50rpx;
					text-align: center;
				}
			}
		}
	}
	.u-nav-slot {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 5rpx 10rpx;
		}
</style>

<style>
	page {
		background-color: #f2f1f6;
	}
</style>